package com.cxx.framework.web;

/**
 * 错误响应
 */
public final class ErrorResponse {
    /**
     * 自定义code
     */
    private final String code;

    /**
     * 自定义消息
     */
    private final String message;

    public ErrorResponse(String message) {
        this.code = "Unspecified";
        this.message = message;
    }

    public ErrorResponse(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
